package com.liao.learntest.job;

import java.util.Objects;
import java.util.Set;

/**
 * @author: liaowenqiang
 * @date: 2024/11/16 13:25
 * @description: 结算服务
 **/
public class SettlementService {

    private SettlementJobService settlementJobService;

    public void settlement(String settlementId){
        //初次执行，需要先生成所有的job
        if(isCreateJob(settlementId)){
            settlementJobService.createJobs(settlementId);
        }
        //唤醒当前状态的下的job去执行
        settlementJobService.notifyRuning(settlementId);

    }

    private boolean isCreateJob(String settlementId){
        return true;
    }




}
